//: C02:Numconv.cpp
// Converts decimal to octal and hex
#include <iostream>
using namespace std;

int main() {
    int number;
    cout << "Enter a decimal number: ";
    cin >> number;

    // Using format manipulators:
    cout << "value in octal = 0" << oct << number << endl;
    cout << "value in hex = 0x" << hex << number << endl;

    return 0;
} ///:~
